翻訳と辞書
Words near each other
・ Excentradenia
・ Excentris
・ Except for Monday
・ Except Sometimes
・ Except the Dying
・ Except the Dying (novel)
・ Excepted service
・ Excepter
・ Exceptia
・ Exceptia hospita
・ Exceptia neopetrella
・ Exceptia sisterina
・ Exceptio non adimpleti contractus
・ Exception
・ Exception (song)
Exception chaining
・ Exception handling
・ Exception handling syntax
・ Exception in deed
・ Exception safety
・ Exception that proves the rule
・ Exception to the Rule
・ Exceptional case-marking
・ Exceptional character
・ Exceptional Children
・ Exceptional circumstances
・ Exceptional Collector Award
・ Exceptional divisor
・ Exceptional Family Member Program
・ Exceptional inverse image functor


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Exception chaining : ウィキペディア英語版
Exception chaining
Exception chaining, or exception wrapping, is an object-oriented programming technique of handling exceptions by re-throwing a caught exception after wrapping it inside a new exception. The original exception is saved as a property (such as ''cause'') of the new exception. The idea is that a method should throw exceptions defined at the same abstraction level as the method itself, but without discarding information from the lower levels.
For example, a method to play a movie file might handle exceptions in reading the file by re-throwing them inside an exception of movie playing. The user interface doesn't need to know whether the error occurred during reading chunk of bytes or calling eof(). It needs only the exception message extracted from ''cause''. The user interface layer will have its own set of exceptions. The one interested in ''cause'' can see its stack trace during debugging or in proper log.
Throwing the right kind of exceptions is particularly enforced by checked exceptions in the Java programming language, and starting with language version 1.4 almost all exceptions support chaining.
In runtime engine environments such as Java or .Net there exist tools that attach to the runtime engine and every time that an exception of interest occurs they record debugging information that existed in memory at the time the exception was thrown (stack and heap values). These tools are called Exception Interception and they provide "root-cause" information for exceptions in Java programs that run in production, testing, or development environments.
== References ==

* (''Exceptional practices'' ) by Brian Goetz at javaworld.com
* (''Chained exceptions'' ) - Sun's Java tutorial

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Exception chaining」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.